<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合计为1</title>
</head>
<body>
    <style>
        .parent {
          display: flex;
          width: 300px;
          height: 200px;
          border: 1px solid #ccc;
          flex-direction: column;
        }
        .child {
          flex-grow: 1;
        }
      </style>
      
      <div class="parent">
        <div style="background-color: bisque;border: 2px solid red;">222</div>
        <div class="child" style="background-color: chocolate;">
          <!-- 子组件内容 -->
          4555
        </div>
        <div style="background-color: bisque;">111</div>
    </div>
      
</body>
</html>